Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] account_invoice_fiscal_position_update: Migration to 18.0 #1863

Merged

Conversation

rov-adhoc
Copy link

No description provided.

@gonzalolenzi
Copy link

LGTM

@rov-adhoc
Copy link
Author

@pedrobaeza Hi! I would like to ask you if it's something missing in this migration in order to be approve
Thanks in advance!

@pedrobaeza
Copy link
Member

@legalsylvain
Copy link
Contributor

Hi @rov-adhoc thanks for porting this module. could you rebase, to re build runboat. I'd like to know if the bug described here is still present in the 18.0 branch. (#1896)
Thanks !

@rov-adhoc rov-adhoc force-pushed the 18.0-mig-account_invoice_fiscal_position_update branch from 25ebb65 to 0c47ca8 Compare January 30, 2025 10:33
@rov-adhoc
Copy link
Author

@legalsylvain thanks for your message. I was able to reproduce the same error in the 18.0 branch. Do you know if anyone is currently working on a fix for this issue?

@legalsylvain
Copy link
Contributor

Do you know if anyone is currently working on a fix for this issue?

I don't know. I just raised this error, using the V16 module. Let's wait what maintainers and original developpers are saying about that bug.

Copy link
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider adhoc-dev#1

@rov-adhoc
Copy link
Author

@StefanRijnhart HI! I just included your PR in this migration! thanks

@StefanRijnhart
Copy link
Member

Thanks! Can you drop the merge commit?

alexis-via and others added 19 commits February 17, 2025 08:25
Currently translated at 100,0% (4 of 4 strings)

Translation: account-invoicing-11.0/account-invoicing-11.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-11-0/account-invoicing-11-0-account_invoice_fiscal_position_update/nl_NL/
Currently translated at 100,0% (4 of 4 strings)

Translation: account-invoicing-11.0/account-invoicing-11.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-11-0/account-invoicing-11-0-account_invoice_fiscal_position_update/de/
Currently translated at 100.0% (4 of 4 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_fiscal_position_update/de/
Currently translated at 100.0% (4 of 4 strings)

Translation: account-invoicing-12.0/account-invoicing-12.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_invoice_fiscal_position_update/pt_BR/
Currently translated at 100.0% (4 of 4 strings)

Translation: account-invoicing-13.0/account-invoicing-13.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-13-0/account-invoicing-13-0-account_invoice_fiscal_position_update/nl/
Currently translated at 100.0% (4 of 4 strings)

Translation: account-invoicing-13.0/account-invoicing-13.0-account_invoice_fiscal_position_update
Translate-URL: https://translation.odoo-community.org/projects/account-invoicing-13-0/account-invoicing-13-0-account_invoice_fiscal_position_update/es/
… taxes when this was changed.

Otherwise the taxes are not changed when change the fpos.
@rov-adhoc rov-adhoc force-pushed the 18.0-mig-account_invoice_fiscal_position_update branch from 849521c to 3d2c91b Compare February 17, 2025 11:28
@rov-adhoc
Copy link
Author

Thanks! Can you drop the merge commit?

Done

@StefanRijnhart
Copy link
Member

Yes, but now you squashed my changes into the migration commit. That is not correct. The original commit should be kept.

StefanRijnhart and others added 2 commits February 17, 2025 10:02
Fixes OCA#1896

This change causes the subtotal amount to remain the same when a fiscal position
change triggers a tax update from tax included in price to tax excluded from
price.

Tests are added for conversion between tax excluded to tax included as well, but
in this case the behaviour is not 'fixed'. The standard behaviour of Odoo in
case of tax excl. to tax incl. is to adjust the subtotal amount. The same
behaviour is present in the function that this module provides. It might not
be what users expect, but it seems that Odoo does not support to preserve the
subtotal amount in this case.
@rov-adhoc rov-adhoc force-pushed the 18.0-mig-account_invoice_fiscal_position_update branch from 3d2c91b to 7a3fef1 Compare February 17, 2025 13:03
@rov-adhoc
Copy link
Author

Yes, but now you squashed my changes into the migration commit. That is not correct. The original commit should be kept.

Hope now its ok

Copy link
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thank you!

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@legalsylvain
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Sorry @legalsylvain you are not allowed to merge.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

@StefanRijnhart
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-1863-by-StefanRijnhart-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f918667 into OCA:18.0 Feb 17, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 18ad772. Thanks a lot for contributing to OCA. ❤️

@StefanRijnhart
Copy link
Member

/ocabot migration account_invoice_fiscal_position_update

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Feb 17, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Feb 17, 2025
21 tasks
@pedrobaeza
Copy link
Member

This module is not needed anymore since 17.0: #1935 (comment)

I think we should remove it. @StefanRijnhart @rov-adhoc @cav-adhoc

@StefanRijnhart
Copy link
Member

@pedrobaeza Maybe it's a bit harsh to remove it, but maybe we can remove the code, set it to uninstallable and just note the obsolescense in the module description? This would not break automatic deploys where the module is already installed I think.

@pedrobaeza
Copy link
Member

OK, that seems the best path for those with the module installed. @rov-adhoc are you able to do it?

@rov-adhoc
Copy link
Author

@pedrobaeza @StefanRijnhart Hey! I’ve created the PR for this. Let me know if any changes are needed!
PR -->
#1941

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.